<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
        <script src="js/time.js?">
        </script>
        <script>
        
        </script>
    </head>
    <body >
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <?php 
        	//print_r($xishu); 
        ?>
        
        <form action="" method="POST" id="rowForm">
		  <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tablegrid tableedit">
		    <tr>
		<td><?= translate('ACTIVITY_MODULE_DES') ?>:</td>
		<td><?=$modulename ?></td>
	</tr>

	<tr>
	<tr>
		<td><?= translate('ACTIVITY_STRATEGY_STRAGEGYNAME') ?></td>
		<td><input type="text" name="row[strategyname]" id="strategyname"
			value="<?= $row['strategyname'] ?>"></td>
	</tr>	
		      <tr>
		        <td>
		            <?= translate('ACTIVITY_WISHPOND_REFRESH') ?>
		          </td>
		        <td >
		            <input type="text"  name="row[refresh]" id="refresh" value = '<?=$row['refresh'] ?>' />
		        </td>
		      </tr>
		      <tr>
		        <td>
		            <?= translate('ACTIVITY_WISHPOND_SPEEDUP') ?>
		         </td>
		        <td >
		            <input type="text" name="row[speedup]" id="speedup" value="<?= $row['speedup'] ?>">
		        </td>
		      </tr>
		       <tr>
		        <td>
		            <?= translate('ACTIVITY_WISHPOND_EXTEND') ?>
		         </td>
		        <td >
		            <input type="text" name="row[extend]" id="extend" value="<?= $row['extend'] ?>">
		        </td>
		      </tr>
		       <tr>
		        <td>
		            <?= translate('ACTIVITY_WISHPOND_SEEDCOST') ?>
		         </td>
		        <td >
		            <input type="text" name="row[seedcost]" id="seedcost" value="<?= $row['seedcost'] ?>">
		        </td>
		      </tr>
		       <tr>
		        <td>
		            <?= translate('ACTIVITY_WISHPOND_HARVEST') ?>
		         </td>
		        <td >
		            <input type="text" name="row[harvest]" id="harvest" value="<?= $row['harvest'] ?>">
		        </td>
		      </tr>
		       <tr>
		        <td>
		            <?= translate('ACTIVITY_WISHPOND_PROBABILITY') ?>
		         </td>
		        <td >
		            <input type="text" name="row[probability]" id="probability" value="<?= $row['probability'] ?>">
		        </td>
		      </tr>
		       <tr>
		        <td>
		            <?= translate('ACTIVITY_WISHPOND_GROUPTIME') ?>
		         </td>
		        <td >
		            <input type="text" name="row[grouptime]" id="grouptime" value="<?= $row['grouptime'] ?>">
		        </td>
		      </tr>
		    
		      <input name="tablename" type='hidden' value="<?=$tablename ?>" />
			<input name="strategyid" type='hidden' value="<?=$row['strategyid'] ?>" />
			<input name="tableenum" type='hidden' value="<?=$tableenum ?>" />
			<tr>
				<td>
				<div align="center"><input type="hidden" name="tablename"
					value="<?= $tablename ?>"> <input name="submit" type="submit"
					id="submit" value="<?= translate('SUBMIT') ?>" /></div>
				</td>
				<td>
				<div align="center"><input type="reset"
					value="<?= translate('RESET') ?>" id="reset" /></div>
				</td>
			</tr>
		  
		  </table>
	</form>

    <script type="text/javascript">
            SG.init("core.form", function() {
                $.formValidator.initConfig({formid: "#rowForm", submitonce: true});
                
                    $("#strategyname").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                	$("#strategyid").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: 'num', datatype: 'enum', onerror: '<?= translate('C_ONLY_NUM') ?>'});
                	$("#refresh").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: '^(0\.\d*)[1-9]|1$', onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'}); 
                	$("#speedup").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: '^(0\.\d*)[1-9]|1$', onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'}); 
                	$("#extend").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: '^(0\.\d*)[1-9]|1$', onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'}); 
                	$("#seedcost").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: '^(0\.\d*)[1-9]|1$', onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'}); 
                	$("#harvest").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'intege1',datatype:'enum',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});
                	$("#probability").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: '^(0\.\d*)[1-9]|1$', onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'}); 
                	$("#grouptime").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: '^(0\.\d*)[1-9]|1$', onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'});   

               });
    </script>
    </body>
</html>